<?php


namespace App\Models;


use App\Engine\BaseModel;

/**
 * Class Image
 *
 * @property int $id
 * @property string|null $url
 * @package App\Models
 */

class Image extends BaseModel
{
    protected $table = 'images';
    public $timestamps = false;
    protected $fillable = [
        'url',
    ];

    public static function del_data($url)
    {
        $res=self::where("url",$url)->first();
        if ($res){
            self::find($res["id"])->delete();
        }
    }
}
